package com.mylife.user.service;

import com.mylife.pojo.Result;
import com.mylife.user.vo.params.UserAccountParams;

import javax.servlet.http.HttpServletResponse;

/**
 * 用户信息service
 * @author blueCat
 * @since 2022-01-08
 */
public interface UserService {

    /**
     * 用户账号注册
     * @param params(username,password,sex,birthday)
     * @return boolean
     */
    Result registerAccount(UserAccountParams params);

    /**
     * 用户登录
     * @param params(username,password)
     * @return boolean
     */
    Result loginAccount(UserAccountParams params, HttpServletResponse resp);
}
